<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      article {
        display: grid;
        width: 200px;
        height: 200px;
        border: 2px solid orange;
        /* grid-template-rows: repeat(auto-fill, 100px);
        grid-template-columns: repeat(auto-fill, 100px); */
        grid-template-rows: repeat(2, 1fr);
        grid-template-columns: repeat(2, 1fr);
        /* grid-template-rows: 1fr 2fr 1fr;
        grid-template-columns: 1fr 2fr 1fr; */
      }
      /* 选择编号  只能是矩形 */
      /* div:first-child {
        grid-row-start: 2;
        grid-column-start: 1;
        grid-row-end: 3;
        grid-column-end: 4;
        background: white;
        border: 1px solid red;
        box-sizing: border-box;
      } */
      /* 选择不规则布局 */
      div:first-child {
        grid-row-start: 1;
        grid-column-start: 1;
        grid-row-end: 3;
        grid-column-end: 2;
        background: white;
        border: 1px solid red;
        box-sizing: border-box;
      }
      div:nth-child(2) {
        grid-row-start: 1;
        grid-column-start: 2;
        grid-row-end: 2;
        grid-column-end: 3;
        background: white;
        border: 1px solid red;
        box-sizing: border-box;
      }
      div:nth-child(3) {
        grid-row-start: 2;
        grid-column-start: 2;
        grid-row-end: 3;
        grid-column-end: 3;
        background: white;
        border: 1px solid rgb(23, 22, 22);
        box-sizing: border-box;
      }
    </style>
  </head>
  <body>
    <article>
      <div>19</div>
      <div>19</div>
      <div>19</div>
    </article>
  </body>
</html>
